package com.fuqi.android.zhongcai.base;

import android.os.Environment;

/**
 * Created by admin on 2015/7/27.
 */
public class Constants {

    // 判断是调试版本还是发布版本
    public static  boolean IS_DEBUG = true;
    //
    public static final String SP_NAME = "SP_NAME";

//    public static final String SDCARD_PATH = "ZhongCDownload/";
//    public static final String DATA_PATH = "ZhongCDownload/";

    public static String ENV_PATH = Environment.getExternalStorageDirectory()
            .getAbsolutePath() + "/";

    // 程序根目录
    public static String DATA_PATH = "/data/data/com.fuqi.android.zhongcai" + "/";

    // 存放在SD卡上
    public static String SDCARD_PATH = ENV_PATH + "ZhongCDownload/";

    /* 登入App角色  */
    //普通用户
    public static final String ROLE_GRKH = "GRKH";
    // 内勤
    public static final String ROLE_NQ = "NQ";
    //施工队长
    public static final String ROLE_SGDZ = "SGDZ";
    //施工工人
    public static final String ROLE_SGGR = "SGGR";
    //监察员
    public static final String ROLE_JCY = "JCY";

    /* 安装类型 */
    //装水管
    public static final int INSTALL_SHUI_GUAN = 0;
    //装地暖
    public static final int INSTALL_DI_NUAN = 1;


    public static final int USER_PICK_PHOTO = 1011;
    // 联系我们电话号码
    public static final String CONTCAT_US_PHONE_NUMBER = "18221660014";
    // 更新apk，储存位置
    public static final String UPDATE_APK_STORAGE_LOCATION = "/sdcard/mly/mly_update.apk";

    // 数据库操作 begin
    public static final String DB_NAME = "zhongcai_db";
    // 数据库操作 end


    // 主页Tab切换
    public static final int TAB_HOME = 0;
    public static final int TAB_ORDER = 1;
    public static final int TAB_USER_CENTER = 2;

    // 图片最多选择张数
    public static final int MAX_IMAGE_SIZE = 9;


    // 管理工人  选择工人判断
    public static final int CITY_LIST_NORMAL = 0;
    public static final int CITY_LIST_CHOOSE = 1;

    //轮播图类别
    //主页轮播   TPLX_LB 微信二维码 TPLX_EWM
    public static final String BANNER_HOME   = "TPLX_LB";
    public static final String BANNER_WEIXIN = "TPLX_EWM";

    // 大类订单状态（不同角色需要的不一样）
    //待审核
    public static final String DAI_SEHN_HE   = "DLDDZT_DLDSH";
    //待处理
    public static final String DAI_CHU_LI = "DLDDZT_DLDCL";
    //待安装
    public static final String DAI_AN_ZHUANGQ   = "DLDDZT_DLDAZ";
    //已完成
    public static final String YI_WAN_CHENG = "DLDDZT_DLYWC";
    //待抽查
    public static final String DAI_CHOU_CHA   = "DLDDZT_DLDCC";
    //已抽查
    public static final String YI_CHOU_CHA = "DLDDZT_DLYCC";


    //订单类型： 水管、地暖（见数据字典
    //地暖
    public static final String TYPE_DI_NUAN   = "DDLX_DNLX";
    //水管
    public static final String TYPE_SHUI_GUAN = "DDLX_SGLX";


    //  1 只查罚单
    //  0 所有抽查
    public static final String MONTH_FA_DAN   = "1";
    public static final String MONTH_CHOU_CHA = "0";


    //  AZNR_AZ 安装
    //  AZNR_GZ 改装
    public static final String AN_ZHUNG   = "AZNR_AZ";
    public static final String GAI_ZHUANG = "AZNR_GZ";

    // 下拉刷新 上拉加载  flag
    public static final int LOAD_DATA_REFRESH = 0;
    public static final int LOAD_DATA_MORE = 1;


    // 订单状态
    public static final String DAI_SHE_HE   = "DDZT_DSZ";
    public static final String BU_TONG_GUO = "DDZT_BTG";
    public static final String DAI_CHU_LI_ORDER   = "DDZT_DCL";
    public static final String DAI_CHU_FA = "DDZT_DCF";
    public static final String DAI_AN_ZHUANG   = "DDZT_DAZ";
    public static final String AN_ZHUANG_ZHONG = "DDZT_AZZ";
    public static final String BU_KE_AN_ZHUANG   = "DDZT_BKAZ";
    public static final String AN_ZHUANG_WAN_CHENG = "DDZT_AZWC";
    public static final String DAI_HUI_FANG   = "DDZT_DHF";
    public static final String YI_HUI_FANG = "DDZT_YHF";
    public static final String YI_CHOU_CHA_ORDER   = "DDZT_YCC";
    public static final String YI_PING_LUN = "DDZT_YPL";
    public static final String KE_HU_NO_CONTACT   = "DDZT_KHWFLX";

}


/*

         if (UniApplication.getInstance().getCurrentRole().equals(Constants.ROLE_GRKH)){
            // 用户

        } else if (UniApplication.getInstance().getCurrentRole().equals(Constants.ROLE_SGGR)){
            // 施工工人

        }else if (UniApplication.getInstance().getCurrentRole().equals(Constants.ROLE_JCY)){
            // 监察员

        }else if (UniApplication.getInstance().getCurrentRole().equals(Constants.ROLE_NQ)){
            // 内勤


        }else if (UniApplication.getInstance().getCurrentRole().equals(Constants.ROLE_SGDZ)){
            // 施工队长

        }

* */
